<template>
  <div class="main">
    <div class="title">定 时 点 检 索</div>
    <div class="content">
      <div class="mainContext">
        <div class="start-end">
          <div class="leftContent">
            <div class="start">
              <span>开 始 时 间：</span>
              <div v-for="(item, index) in begin" :key="index">
                <input type="text" />
                <span>{{ item }}</span>
              </div>
            </div>
            <div class="end">
              <span>结 束 时 间：</span>

              <div v-for="(item, index) in end" :key="index">
                <input type="text" />
                <span>{{ item }}</span>
              </div>
            </div>
          </div>
          <div class="rightContent"><button>+</button><button>-</button></div>
        </div>
        <div class="ponitName">
          <span>定 时 点 名 称：</span><input type="text" />
        </div>
      </div>
      <div class="filterOption">
        <span class="span">过 滤 项</span>
        <div><input type="checkbox" /><span>时 间 段</span></div>
        <div><input type="checkbox" /><span>名 称</span></div>
      </div>
      <div class="buttons">
        <button @click="confirm">确 定</button
        ><button @click="cancel">取 消</button>
      </div>
    </div>
  </div>
</template>
<script setup>
import { ref } from "vue";
import { useRouter, useRoute } from "vue-router";
const begin = ref(["h", "m", "s"]);
const end = ref(["h", "m", "s"]);
const router = useRouter();
const confirm = () => {
  router.go(-1);
};
const cancel = () => {
  router.go(-1);
};
</script>
<style scoped lang="less">
.main {
  width: 100%;
  height: 100%;
  background: rgb(8, 17, 32);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  .title {
    height: 10%;
    width: 98%;
    text-align: center;
    font-size: 2vw;
    font-weight: 900;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .content {
    height: 80%;
    width: 95%;
    background: white;
    border-radius: 1vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2vh;
    font-weight: 700;
    .mainContext {
      width: 90%;
      height: 40%;
      display: flex;
      flex-direction: column;
      .start-end {
        display: flex;
        width: 100%;
        height: 60%;
        .leftContent {
          display: flex;
          flex-direction: column;
          width: 80%;
          height: 100%;
          justify-content: space-around;
          .start {
            display: flex;
            flex-direction: row;
            width: 100%;
            div {
              width: 30%;
              display: flex;
              input {
                width: 10vw;
                background: rgb(220, 220, 220);
                border: 0ch;
                border-radius: 0.3vh;
                padding: 0 1vw;
                cursor: pointer;
              }
              span {
                width: 3vw;
              }
            }
            span {
              width: 30%;
              margin-left: 0.5vw;
              display: flex;
              align-items: flex-start;
            }
          }
          .end {
            display: flex;
            flex-direction: row;
            width: 100%;
            div {
              width: 30%;
              display: flex;
              input {
                width: 10vw;
                background: rgb(220, 220, 220);
                border: 0ch;
                border-radius: 0.3vh;
                padding: 0 1vw;
                cursor: pointer;
              }
              span {
                width: 3vw;
              }
            }
            span {
              width: 30%;
              margin-left: 0.5vw;
              display: flex;
              align-items: flex-start;
            }
          }
        }
        .rightContent {
          width: 38%;
          height: 100%;
          display: flex;
          justify-content: space-around;
          align-items: center;
          button {
            width: 10vw;
            height: 3vh;
            background: rgb(220, 220, 220);
            border: 0ch;
            border-radius: 0.3vh;
            padding: 0 1vw;
            font-size: 2vh;
            font-weight: 800;
            cursor: pointer;
          }
        }
      }
      .ponitName {
        // height: 20%;
        width: 80%;
        display: flex;
        margin-top: 2vh;
        span {
          width: 16%;
            margin-left: 0.5vw;
          display: flex;
          align-items: flex-start;
          //   margin-left: 0.5vw;
        }
        input {
          width: 20vw;
          background: rgb(220, 220, 220);
          border: 0ch;
          border-radius: 0.3vh;
          padding: 0 1vw;
          cursor: pointer;
        }
      }
    }
    .filterOption {
      width: 90%;
      height: 20%;
      display: flex;
      justify-content: center;
      align-items: center;
      border: black solid 0.2vh;
      border-radius: 0.5vh;
      position: relative;
      .span {
        position: absolute;
        top: -1.5vh;
        height: 3vh;
        width: 7vw;
        background: rgb(255, 255, 255);
      }
      div {
        display: flex;
        align-items: center;
        margin-right: 3vw;
        justify-content: center;
        input {
          margin: 0.5vh;
        }
      }
    }
    .buttons {
      display: flex;
      justify-content: center;
      align-items: center;
        height: 40%;
      button {
        height: 5vh;
        width: 11vw;
        font-size: 1.7vh;
        color: aliceblue;
        background: url(/src/views/index/jumpToView/buttonPhoto/buttonbefore.png)
          no-repeat 32.9% 83.9%;
        background-size: 105vw 95vh;
        border: 0ch;
        cursor: pointer;
        border-radius: 0.5vh;
        margin-left: 3vw;
        margin-bottom: 2vh;
        font-weight: 700;
      }
    }
  }
}
</style>